package com.honghu.cloud.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.honghu.cloud.dto.UserDto;

/**
 * 用户feign调用类
 * @author Administrator
 *
 */
@FeignClient(name="honghu-member-service" ,path="/user")
public interface UserFeignClient {

	/**
	 * 根据用户id查询用户
	 * @param congelationDto
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/selectByPrimaryKey", method = RequestMethod.GET)
	public UserDto selectByPrimaryKey(@RequestParam("id") Long id);
	
}


